﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ARR.Entities;
using ARR.Services.Domain.Importers;
using ARR.Services.Domain;

namespace ARR.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "EnvoyImporterService" in both code and config file together.
    public class ExcelImporterService : IExcelImporterService
    {
        //History
        public IList<ImporterResult> ImportHistoryStep1(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportHistoryStep1();
        }

        public IList<ImporterResult> ImportHistoryStep2(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportHistoryStep2();
        }

        public IList<ImporterResult> ImportHistoryStep3(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportHistoryStep3();
        }

        public IList<ImporterResult> ImportHistoryStep4(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportHistoryStep4();
        }

        //Spaces
        public IList<ImporterResult> ImportSpacesMasterStep1(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportSpacesMasterStep1();
        }

        public IList<ImporterResult> ImportSpacesMasterStep2(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportSpacesMasterStep2();
        }

        public IList<ImporterResult> ImportSpacesMasterStep3(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportSpacesMasterStep3();
        }

        public IList<ImporterResult> ImportSpacesMasterStep4(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportSpacesMasterStep4();
        }

        //Inventories
        public IList<ImporterResult> ImportInventoryMasterStep1(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportInventoryMasterStep1();
        }

        public IList<ImporterResult> ImportInventoryMasterStep2(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportInventoryMasterStep2();
        }

        //PI Differences
        public IList<ImporterResult> ImportPIDifferencesStep1(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportPIDifferencesStep1();
        }

        public IList<ImporterResult> ImportPIDifferencesStep2(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportPIDifferencesStep2();
        }

        public IList<ImporterResult> ImportPIDifferencesStep3(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportPIDifferencesStep3();
        }

        public IList<ImporterResult> ImportPIDifferencesStep4(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportPIDifferencesStep4();
        }


        //Stores
        public IList<ImporterResult> ImportStoreMasterStep1(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportStoreMasterStep1();
        }

        public IList<ImporterResult> ImportStoreMasterStep2(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportStoreMasterStep2();
        }


        //Articles
        public IList<ImporterResult> ImportArticleMasterStep1(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportArticleMasterStep1();
        }

        public IList<ImporterResult> ImportArticleMasterStep2(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportArticleMasterStep2();
        }

        //Ventas
        public IList<ImporterResult> ImportArticleSalesStep1(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportArticleSalesStep1();
        }

        public IList<ImporterResult> ImportArticleSalesStep2(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.ImportArticleSalesStep2();
        }


        //Importador Unificado
        public IList<ImporterResult> UnifiedImporterStep1(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.UnifiedImporterStep1();
        }

        public IList<ImporterResult> UnifiedImporterStep2(RangeReview rangeReview)
        {
            ExcelImporter importer = new ExcelImporter(rangeReview);
            return importer.UnifiedImporterStep2();
        }

    }
}
